﻿using Coldairarrow.Entity.Base;
using Coldairarrow.Entity.PB;
using System;
using System.Collections.Generic;
using System.Text;

namespace Coldairarrow.Entity.DTO
{
    /// <summary>
    /// 通过维修申请 查看维修工单及明细数据
    /// </summary>
   public class Base_RepairOrderApplyListInfo
    {
        public  List<Base_RepairOrder> MainData { get; set; }
        public List<Base_RepairOrderDetailsDto> SubData { get; set; }
    }

    public class Base_RepairOrderDetailsDto : Base_RepairOrderDetails
    {

        /// <summary>
        /// 备件规格
        /// </summary>
        public string Spce { get; set; }
        /// <summary>
        /// 备件编码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 工件名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 可用数量
        /// </summary>
        public Double? Inventoryquantity { get; set; }

        /// <summary>
        /// 位置
        /// </summary>
        public String Position  { get; set; }
    }

    public class Base_RepairOrderList : Base_RepairOrder {
        public List<Base_RepairOrderDetailsDto> SubData { get; set; }
    }


    public class Base_RepairOrderPrint  {

        /// <summary>
        /// 维修单号
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 维修申请人
        /// </summary>
        public string Applicant { get; set; }
        /// <summary>
        /// 保修时间
        /// </summary>
        public DateTime? ApplicationDate { get; set; }
        /// <summary>
        /// 故障描述
        /// </summary>
        public string FaultDescription { get; set; }
      /// <summary>
      /// 派工人
      /// </summary>
        public string UserId { get; set; }

        /// <summary>
        /// 完成时间
        /// </summary>
        public DateTime? CompletionTime { get; set; }

        /// <summary>
        /// 故障原因
        /// </summary>
        public string FaultAnalysis { get; set; }

        /// <summary>
        /// 维修费用
        /// </summary>
        public Double? MaintenancePrice { get; set; }
        /// <summary>
        /// 设备二维码
        /// </summary>
        public string DeviceId { get; set; }
        /// <summary>
        /// 扫描二维码
        /// </summary>

        public string QrCode { get; set; }
        public List<Base_RepairOrderDetailsDto> SubData { get; set; }

        public string ParentId { get; set; }
        /// <summary>
        /// 翻译设备规格
        /// </summary>
        public string Spec { get; set; }
        /// <summary>
        /// 设备编号
        /// </summary>
        public string Code { get; set; }

       /// <summary>
       /// 故障类型
       /// </summary>
        public string Type { get; set; }
        /// <summary>
        /// 维修类别
        /// </summary>
        public string MaintenanceLevel { get; set; }

    }
}
